package com.doradance.model.local;

import android.content.Context;

import com.yong.android.framework.utils.SharedPreferencesUtils;


/**
 * SharePreference Dao
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016/7/7 16:49
 * @Version: 1.0.0
 */
public class SpDao {


    private static final String SP_FILENAME_COMMON = "sp_common";
    //第一次启动app
    private static final String KEY_FIRST_TIME_START_APP = "key_first_start_app";

    public static boolean isFirstTimeStartApp(Context context) {
        return (boolean) SharedPreferencesUtils.getParam(context,KEY_FIRST_TIME_START_APP,true);
    }


//

    public static void setKeyFirstTimeStartApp(Context context, boolean isFirstTime) {
       SharedPreferencesUtils.setParam(context, KEY_FIRST_TIME_START_APP, isFirstTime);
    }
}
